Database:  /dbdata/interbase/pcweek.gdb, User: pcweek
create table uniques (
u_key int not null,
u_int int not null,
u_signed int,
u_float float not null,
u_double double precision not null,
u_decim numeric (18,4) not null,
u_date date not null,
u_code char(10) not null,
u_name char(20) not null,
u_address varchar(80) not null
);
create table hundred (
h_key int not null,
h_int int not null,
h_signed int,
h_float float not null,
h_double double precision not null,
h_decim numeric (18,4) not null,
h_date date not null,
h_code char(10) not null,
h_name char(20) not null,
h_address varchar(80) not null
);
create table tenpct (
t_key int not null,
t_int int not null,
t_signed int,
t_float float not null,
t_double double precision not null,
t_decim numeric (18,4) not null,
t_date date not null,
t_code char(10) not null,
t_name char(20) not null,
t_address varchar(80) not null
);
create table updates (
p_key int not null,
p_int int not null,
p_signed int,
p_float float not null,
p_double double precision not null,
p_decim numeric (18,4) not null,
p_date date not null,
p_code char(10) not null,
p_name char(20) not null,
p_address varchar(80) not null
);
create table tenthou (
t_key int not null,
t_int int not null,
t_signed int,
t_float float not null,
t_double double precision not null,
t_decim numeric (18,4) not null,
t_date date not null,
t_code char(10) not null,
t_name char(20) not null,
t_address varchar(80) not null
);
create table hunthou (
h_key int not null,
h_int int not null,
h_signed int,
h_float float not null,
h_double double precision not null,
h_decim numeric (18,4) not null,
h_date date not null,
h_code char(10) not null,
h_name char(20) not null,
h_address varchar(80) not null
);
create table twomill (
p_key int not null,
p_int int not null,
p_signed int,
p_float float not null,
p_double double precision not null,
p_decim numeric (18,4) not null,
p_date date not null,
p_code char(10) not null,
p_name char(20) not null,
p_address varchar(80) not null
);
create table threemill (
t_key int not null,
t_int int not null,
t_signed int,
t_float float not null,
t_double double precision not null,
t_decim numeric (18,4) not null,
t_date date not null,
t_code char(10) not null,
t_name char(20) not null,
t_address varchar(80) not null
);
create table fourmill (
t_key int not null,
t_int int not null,
t_signed int,
t_float float not null,
t_double double precision not null,
t_decim numeric (18,4) not null,
t_date date not null,
t_code char(10) not null,
t_name char(20) not null,
t_address varchar(80) not null
);
create table fivemill (
h_key int not null,
h_int int not null,
h_signed int,
h_float float not null,
h_double double precision not null,
h_decim numeric (18,4) not null,
h_date date not null,
h_code char(10) not null,
h_name char(20) not null,
h_address varchar(80) not null
);
create table fourram (
p_key int not null,
p_int int not null,
p_signed int,
p_float float not null,
p_double double precision not null,
p_decim numeric (18,4) not null,
p_date date not null,
p_code char(10) not null,
p_name char(20) not null,
p_address varchar(80) not null
);
create view reportview (r_key, r_signed, r_date, r_decim, r_name, r_code, r_int) as
 select updates.p_key, updates.p_signed, updates.p_date, updates.p_decim, hundred.h_name, hundred.h_code, hundred.h_int
 from updates, hundred
  where updates.p_key = hundred.h_key;
create table update_int_history (
p_key int not null,
p_int int not null,
p_date date not null
);
create table oltp_write_01_check_value (
int_sum float not null
);
create table update_signed_history (
p_key int not null,
p_signed int not null,
p_date date not null
);
create table del_history (
h_key int not null,
h_int int not null,
h_signed int,
h_float float not null,
h_double double precision not null,
h_decim numeric (18,4) not null,
h_date date not null,
h_code char(10) not null,
h_name char(20) not null,
h_address varchar(80) not null
);
create table oltp_write_04_count_updates (
num_updates int not null
);
exit;
